package com.crux.kafka2ch.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

@Data
public class AccessLogDto {
    private String id;
    private String rid;
    @JsonProperty("create_by")
    private String createBy;
    @JsonProperty("create_time")
    private Date createTime;
    @JsonProperty("last_modified_by")
    private String lastModifiedBy;
    @JsonProperty("update_time")
    private Date updateTime;
    @JsonProperty("last_modified_version")
    private Integer lastModifiedVersion;
    @JsonProperty("is_deleted")
    private Boolean deleted;
    @JsonProperty("client_ip")
    private String clientIp;
    @JsonProperty("client_port")
    private String clientPort;
    @JsonProperty("start_date")
    private Date startDate;
    @JsonProperty("end_date")
    private Date endDate;
    @JsonProperty("total_time")
    private long totalTime;
    private String method;
    @JsonProperty("status_code")
    private int statusCode;
    @JsonProperty("query_string")
    private String queryString;
    @JsonProperty("local_addr")
    private String localAddr;
    @JsonProperty("local_port")
    private int localPort;
    @JsonProperty("request_url")
    private String requestUrl;
    @JsonProperty("request_uri")
    private String requestUri;
    @JsonProperty("current_user")
    private String currentUser;
    @JsonProperty("session_context_id")
    private String sessionContextId;
    @JsonProperty("service_id")
    private String serviceId;
    @JsonProperty("msg_id")
    private String msgId;
    @JsonProperty("pre_request_id")
    private String preRequestId;
}
